<template>
    <!--务必看懂下面这一行的代码-->
    <Person :personList="personList" />
    <!--<Person />-->
</template>
  
<script lang="ts" setup name="App">
//这是父组件的props
import { reactive } from 'vue';
import { type PersonsList } from '@/types';
//开始引入Person
import Person from '@/componentsProps/Person.vue';
let personList=reactive<PersonsList>([
    {id:1,name:'张三',age:20},
    {id:2,name:'李四',age:25},
    {id:2,name:'李四222',age:25}
])
</script>
  